package org.jeecg.modules.flow.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.flow.entity.ActHiTaskInstance;
import org.jeecg.modules.flow.vo.HistoryTaskInstanceVo;

/**
 * @Description: act_hi_taskinst
 * @Author: jeecg-boot
 * @Date: 2021-12-30
 * @Version: V1.0
 */
public interface ActHiTaskInstanceMapper extends BaseMapper<ActHiTaskInstance> {

    /**
     * 分页查询历史任务列表
     *
     * @param wrapper
     * @param page
     * @return
     */
    Page<HistoryTaskInstanceVo> queryHistoricTaskInstances(@Param(Constants.WRAPPER) Wrapper<ActHiTaskInstance> wrapper, Page<HistoryTaskInstanceVo> page);


}
